#ecoding: utf-8 -*-
import wsgi

def start():
    port = 8080
    print "http://localhost:%d" % port
    #import webbrowser
    #webbrowser.open('http://localhost:%d'%port)
    #from werkzeug import run_simple
    #run_simple("localhost", port, wsgi.wsgi_app, use_reloader=True)
    #from cherrpy import wsgiserver
    #httpd = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), wsgi.wsgi_app)
    #httpd.start()
    from wsgiref.simple_server import make_server
    httpd = make_server('', port, wsgi.wsgi_app)
    httpd.serve_forever()
    
if __name__ == '__main__':
    start()